package com.lframework.starter.web.gen.vo.custom.page;

import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class CreateGenCustomPageVo implements BaseVo, Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空！")
    private String name;

    /**
     * 分类ID
     */
    @ApiModelProperty("分类ID")
    private String categoryId;

    /**
     * 页面代码
     */
    @ApiModelProperty(value = "页面代码", required = true)
    @NotBlank(message = "页面代码不能为空！")
    private String pageCode;

    /**
     * 脚本代码
     */
    @ApiModelProperty(value = "脚本代码", required = true)
    @NotBlank(message = "脚本代码不能为空！")
    private String scriptCode;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String description;
}
